package com.then.architecture;

import android.support.annotation.IntDef;
import android.view.View;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Created by 42524 on 2018/1/22.
 */

public interface ActionViewListener {

    int ONCLICK = 1;
    int LONG_CLICK = 2;
    int REFRESH = 3;
    int LOAD_MORE = 4;
    int ON_DOWN = 5;
    int ON_MOVE = 6;
    int ON_UP = 7;
    int ON_CANCEL = 8;

    @Retention(RetentionPolicy.SOURCE)
    @IntDef({ONCLICK, LONG_CLICK, REFRESH, LOAD_MORE, ON_DOWN, ON_MOVE, ON_UP, ON_CANCEL})
    @interface ActionType {

    }

    void actionViewModel(View view, Object o, @ActionType int actionType);
}
